'''
Created on Feb 14, 2012

@author: Michael Lawson

This module contains the plotting functions
'''
import pylab as pl

def PlotBlade(r,chord,twist,t):
    pl.subplot(3,1,1)
    pl.plot(r,chord)
    pl.ylabel('Blade chord (m)')
    
    pl.subplot(3,1,2)
    pl.plot(r,twist)
    pl.ylabel('Blade twist (deg)')
    
    pl.subplot(3,1,3)
    pl.plot(r,t)
    pl.ylabel('Blade thickness (m)')
    pl.xlabel('Blade span location (m)')
    
    pl.draw()
    
def PlotAirfoilClCd():
    pass

def PlotCases(U,omega,pitch):
    pl.subplot(2,1,1)
    pl.plot(U,omega)
    pl.ylabel('Rotor rotation rate (RPM)')
    
    pl.subplot(2,1,2)
    pl.plot(U,pitch)
    pl.ylabel('Blade pitch angle (deg)')
    pl.xlabel('Oncoming flow speed (m/s')
    
    pl.show()
    
def PlotPerformance():
    pass 
    
    
    
        